﻿using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class JsonData
{
    public List<ChapterInfo> ChapterInfoList;
    public PlayerInfo playerInfo;
    public TimeInfo timeInfo;
}

[Serializable]
public class TimeInfo
{
    //2020_1_2
    public string time = "";
    //1-14
    public int getDailyRewardCount = 0;

    public bool isGetDailyReward = false;
}

//这个是大关，也就是一张大地图的信息
[Serializable]
public class ChapterInfo
{
    public string ChapterName;
    public int NeedStarNum;
    public List<LevelInfo> LevelInfoList;
}

[Serializable]
public class LevelInfo
{
    public string LevelName;
    public int PlayedTimes = 0;
    public int StarNum = 0;
    public List<StarJudgeInfo> StarJudgeInfoList;
}

[Serializable]
public class StarJudgeInfo
{
    public string StarJudgeId;
    public bool isComplate;
}



[Serializable]
public class UltInfo
{
    public int BombId ;
    public int BombCount;

    public UltInfo(int id,int count)
    {
        BombId = id;
        BombCount = count;
    }
}
[Serializable]
public class AttributeInfo
{
    public int AttributeId;
    public int CurLevel;
    public float CurArg;
    public bool isMax ;

    public AttributeInfo(int id,int level,float args)
    {
        AttributeId = id;
        CurLevel = level;
        CurArg = args;
        isMax = false;
    }
}

[Serializable]
public class PlayerInfo
{
    public int Money;


    //解锁的关卡
    public List<string> PlayableLevelList;

    //解锁的道具
    public List<int> UnlockedPropList;

    //装备的道具
    public List<int> EquipedPropList;

    //解锁的大招
    public List<UltInfo> UnlockedUltList;

    //装备的大招
    public int EquipedUltID;

    //属性升级情况
    public List<AttributeInfo> AttributeList;
}
